Skip to main content

Getting Started

Installationโ€‹

npm install @open-tech-world/route-matcher

Usageโ€‹

import { routeMatcher } from "@open-tech-world/route-matcher";

routeMatcher(route: string, path: string): RouteSegment[] | null;

// Eg: routeMatcher("/path/:param", "/path/value");